package com.nmsl.registration.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nmsl.common.annotation.Excel;
import com.nmsl.common.core.domain.BaseEntity;

/**
 * 患者处方信息对象 prescription_info
 * 
 * @author skx
 * @date 2025-02-24
 */
@Data
public class skxPrescriptionInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 处方信息id */
    @Excel(name = "处方信息id")
    private Long prescriptionInfoId;

    /** 处方类型（字典） */
    @Excel(name = "处方类型", readConverterExp = "字=典")
    private String prescriptionType;

    /** 药品 id（药品表） */
    @Excel(name = "药品 id", readConverterExp = "药=品表")
    private Long medicineId;

    /** 组号 */
    @Excel(name = "组号")
    private Long groupNumber;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 单次用量 */
    @Excel(name = "单次用量")
    private Long singleDose;

    /** 用法 */
    @Excel(name = "用法")
    private String usage;

    /** 天数 */
    @Excel(name = "天数")
    private Long days;

    /** 总量 */
    @Excel(name = "总量")
    private Long totalAmount;

    /** 就诊记录id（就诊记录表） */
    @Excel(name = "就诊记录id", readConverterExp = "就=诊记录表")
    private Long visitRecordId;

    /** 治疗方案id */
    @Excel(name = "治疗方案id")
    private Long cureId;

    private skxMedicine medicine;

    /** 扩展字段2 */
    @Excel(name = "扩展字段2")
    private String ext2;

    /** 扩展字段3 */
    @Excel(name = "扩展字段3")
    private String ext3;

    /** 扩展字段4 */
    @Excel(name = "扩展字段4")
    private String ext4;

    /** 扩展字段5 */
    @Excel(name = "扩展字段5")
    private String ext5;

    public void setPrescriptionInfoId(Long prescriptionInfoId) 
    {
        this.prescriptionInfoId = prescriptionInfoId;
    }

    public Long getPrescriptionInfoId() 
    {
        return prescriptionInfoId;
    }
    public void setPrescriptionType(String prescriptionType) 
    {
        this.prescriptionType = prescriptionType;
    }

    public String getPrescriptionType() 
    {
        return prescriptionType;
    }
    public void setMedicineId(Long medicineId) 
    {
        this.medicineId = medicineId;
    }

    public Long getMedicineId() 
    {
        return medicineId;
    }
    public void setGroupNumber(Long groupNumber) 
    {
        this.groupNumber = groupNumber;
    }

    public Long getGroupNumber() 
    {
        return groupNumber;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSingleDose(Long singleDose) 
    {
        this.singleDose = singleDose;
    }

    public Long getSingleDose() 
    {
        return singleDose;
    }
    public void setUsage(String usage) 
    {
        this.usage = usage;
    }

    public String getUsage() 
    {
        return usage;
    }
    public void setDays(Long days) 
    {
        this.days = days;
    }

    public Long getDays() 
    {
        return days;
    }
    public void setTotalAmount(Long totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public Long getTotalAmount() 
    {
        return totalAmount;
    }
    public void setVisitRecordId(Long visitRecordId) 
    {
        this.visitRecordId = visitRecordId;
    }

    public Long getVisitRecordId() 
    {
        return visitRecordId;
    }
    public void setCureId(Long cureId) 
    {
        this.cureId = cureId;
    }

    public Long getCureId() 
    {
        return cureId;
    }
    public void setExt2(String ext2) 
    {
        this.ext2 = ext2;
    }

    public String getExt2() 
    {
        return ext2;
    }
    public void setExt3(String ext3) 
    {
        this.ext3 = ext3;
    }

    public String getExt3() 
    {
        return ext3;
    }
    public void setExt4(String ext4) 
    {
        this.ext4 = ext4;
    }

    public String getExt4() 
    {
        return ext4;
    }
    public void setExt5(String ext5) 
    {
        this.ext5 = ext5;
    }

    public String getExt5() 
    {
        return ext5;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("prescriptionInfoId", getPrescriptionInfoId())
            .append("prescriptionType", getPrescriptionType())
            .append("medicineId", getMedicineId())
            .append("groupNumber", getGroupNumber())
            .append("name", getName())
            .append("singleDose", getSingleDose())
            .append("usage", getUsage())
            .append("days", getDays())
            .append("totalAmount", getTotalAmount())
            .append("visitRecordId", getVisitRecordId())
            .append("cureId", getCureId())
            .append("ext2", getExt2())
            .append("ext3", getExt3())
            .append("ext4", getExt4())
            .append("ext5", getExt5())
            .toString();
    }
}
